package com.s10.ecloud.web.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "ENTERPRISE_USER", catalog = "ECLOUD")
public class EnterpriseUser extends User implements java.io.Serializable {

	private static final long serialVersionUID = 1L;

	private String commerceNo;

	private String companyName;


	public EnterpriseUser() {
	}

	public EnterpriseUser(String name, String gender, String commerceNo,
			String email, String phone) {

		setName(name);
		setGender(gender);
		setCommerceNo(commerceNo);
		setEmail(email);
		setPhone(phone);
	}

	@Column(name = "COMPANY_NAME", unique = false, nullable = true, length = 60)
	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	@Column(name = "COMMERCE_NO", unique = false, nullable = false, length = 30)
	public String getCommerceNo() {
		return commerceNo;
	}

	public void setCommerceNo(String commerceNo) {
		this.commerceNo = commerceNo;
	}

}
